package com.rednote.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.rednote.entity.Comments;
import com.rednote.entity.vo.CommentVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 帖子评论表(Comments)服务接口
 *
 * @author yao suxuan
 * @since 2025-05-24 18:10:30
 */
public interface CommentsService extends IService<Comments> {

    public IPage<CommentVO> getCommentsByPostId(Integer postId,Integer postAuthorId, int page, int pageSize);

    public void createComment(Integer id, String content, List<MultipartFile> imageUrl, boolean isPostComment) throws JsonProcessingException;

    public void removeCommentById(Integer id);
}
